package cn.fay.chapter06;

public class ConnectionManager {
	private ConnectionManager(){}
	static Connection[] connections=new Connection[10];
	static int i=0;
	public static Connection getConnection()
	{
		
		if (i<10) {
			
			return connections[i++];
		}
		return null;
		
		
	}
}
class Connection
{
	
	
}